/*loading*/
function show_loading() {
    var loading = $('.load-wrapper');
    if(loading.length>0) {
        loading.show();
    } else {
        var tpl = '<div class="load-wrapper"><div class="mask"></div><div class="loading"></div></div>';

        $('body').append(tpl);
    }
}
function hide_loading() {
    $('.load-wrapper').hide();
}


//添加入购物车
function add_cart(id,num) {
    console.log(id,' - ',num)
    console.log('do something')
}